package com.foreknow.demo1;

import java.util.Scanner;

/**
 * 多选一
 */
public class ControllerDemo3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入会员的积分: ");
        int customScore = input.nextInt();
        double discount;//折扣
        //根据积分判断折扣
        if (customScore < 2000) {
             discount = 0.9;
        }else if(customScore >= 2000 && customScore < 4000) {
             discount = 0.8;
        }else if(customScore >= 4000 && customScore < 8000) {
             discount = 0.7;
        }else {
             discount = 0.6;
        }
        System.out.println("该会员可以享受的折扣是: " + discount);
    }
}
